package kz.gs.kcms.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by IntelliJ IDEA.
 * User: NKrivko
 * Date: 26.03.12
 */
@Controller()
@RequestMapping("/")
public class IndexController {

    @RequestMapping("index")
    public ModelAndView index(){
        return new ModelAndView("index/index");
    }
    @RequestMapping("login")
    public ModelAndView login(){
        return new ModelAndView("index/login");
    }
  @RequestMapping("result")
    public ModelAndView result(){
        return new ModelAndView("index/result");
    }
    @RequestMapping("page-not-found")
    public ModelAndView pageNotFound() {
        return new ModelAndView("index/pageNotFound");
    }

    @RequestMapping("uncaught-error")
    public ModelAndView uncaughtError() {
        return new ModelAndView("index/uncaughtError");
    }
}
